<?php
namespace Home\Controller;
use Think\Controller;
class CourseCategoryController extends HomeController
{
    public function lst()
    {
    	$model = D('Admin/CourseCategory');
    	$data = $model->search();
    	$this->assign(array(
    		'data' => $data['data'],
    		'page' => $data['page'],
    	));
    	$this->display();
    }

    public function detail()
    {
        $id = I('get.id');
        $data = D('Course')->where([
            'cat_id'=>['eq',$id]
        ])->select();
        $this->assign('data',$data);
        $this->display('index');
    }
}